Fixed a few additional tests.
authorInokentiy Babushkin <inokentiy.babushkin@googlemail.com>
Wed, 30 Nov 2016 20:05:23 +0000 (21:05 +0100)
committerInokentiy Babushkin <inokentiy.babushkin@googlemail.com>
Wed, 30 Nov 2016 20:39:37 +0000 (21:39 +0100)
tests/rustc.rs
tests/rustdoc.rs

index f2c99dd46312d3884e66a751fa55a9dbcb42608a..69e16a36a2fa351da57e713d70530436a2dac3bd 100644 (file)
@@ -294,7 +294,7 @@ fn build_only_bar_dependency() {
                 .with_status(0)
                 .with_stderr("\
 [COMPILING] bar v0.1.0 ([..])
-[RUNNING] `[..]--crate-name bar --crate-type lib [..] -C debug-assertions [..]`
+[RUNNING] `rustc --crate-name bar [..] --crate-type lib [..] -C debug-assertions [..]`
 [FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
 "));
 }
index 71f7fc507cd70fb955278431d8533eed72df3b69..a70a2f0c931ad0d023d8ceda5a284c761a99f7ae 100644 (file)
@@ -20,7 +20,7 @@ fn rustdoc_simple() {
                 .with_status(0)
                 .with_stderr(format!("\
 [DOCUMENTING] foo v0.0.1 ({url})
-[RUNNING] `rustdoc src[/]lib.rs --crate-name foo \
+[RUNNING] `rustdoc --crate-name foo src[/]lib.rs \
         -o {dir}[/]target[/]doc \
         -L dependency={dir}[/]target[/]debug[/]deps`
 [FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
@@ -43,7 +43,7 @@ fn rustdoc_args() {
                 .with_status(0)
                 .with_stderr(format!("\
 [DOCUMENTING] foo v0.0.1 ({url})
-[RUNNING] `rustdoc src[/]lib.rs --crate-name foo \
+[RUNNING] `rustdoc --crate-name foo src[/]lib.rs \
         -o {dir}[/]target[/]doc \
         --no-defaults \
         -L dependency={dir}[/]target[/]debug[/]deps`
@@ -88,7 +88,7 @@ fn rustdoc_foo_with_bar_dependency() {
 [COMPILING] bar v0.0.1 ([..])
 [RUNNING] `rustc [..]bar[/]src[/]lib.rs [..]`
 [DOCUMENTING] foo v0.0.1 ({url})
-[RUNNING] `rustdoc src[/]lib.rs --crate-name foo \
+[RUNNING] `rustdoc --crate-name foo src[/]lib.rs \
         -o {dir}[/]target[/]doc \
         --no-defaults \
         -L dependency={dir}[/]target[/]debug[/]deps \
@@ -133,7 +133,7 @@ fn rustdoc_only_bar_dependency() {
                 .with_status(0)
                 .with_stderr(format!("\
 [DOCUMENTING] bar v0.0.1 ([..])
-[RUNNING] `rustdoc [..]bar[/]src[/]lib.rs --crate-name bar \
+[RUNNING] `rustdoc --crate-name bar [..]bar[/]src[/]lib.rs \
         -o {dir}[/]target[/]doc \
         --no-defaults \
         -L dependency={dir}[/]target[/]debug[/]deps`